const Router = require('koa-router');
const { verifyJwt } = require('../middlewares/common.middleware');
const { validateName } = require('../middlewares/tag.middleware');
const tagController = require('../controller/tag.controller');

const router = new Router({ prefix: '/tag' });

router.post('/create', verifyJwt, validateName, tagController.create);
router.get('/list', tagController.getList);

module.exports = router;
